#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren


while True:
	print('Enter your age:')
	age = input()
	if age.isdecimal():
		break
	print('Please enter a number for your age.')

while True:
	print('Select a new password (letters and number only):')
	password = input()
	if password.isalnum():
		break
	print('Passwords can only have letters and numbers.')
